package com.group5.onlinegame.entity;

public class Product {
    private Integer id;//商品ID

    private Integer typeId;//商品类型ID

    private String name;//商品名称

    private Integer costGolds;//金币单价

    private Integer costIngots;//元宝单价

    private Integer amount;//库存数量

    private Integer saleNum;//售出数量

    private String photo;//图片地址

    private String description;//商品描述

    private String isNeedAdress;//是否需要地址

    private String status;//状态

    private String typeName;//商品类型名称


    public Product() {
    }

    public Product(Integer id, Integer typeId, String name, Integer costGolds, Integer costIngots, Integer amount, Integer saleNum, String photo, String description, String isNeedAdress, String status, String typeName) {
        this.id = id;
        this.typeId = typeId;
        this.name = name;
        this.costGolds = costGolds;
        this.costIngots = costIngots;
        this.amount = amount;
        this.saleNum = saleNum;
        this.photo = photo;
        this.description = description;
        this.isNeedAdress = isNeedAdress;
        this.status = status;
        this.typeName = typeName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCostGolds() {
        return costGolds;
    }

    public void setCostGolds(Integer costGolds) {
        this.costGolds = costGolds;
    }

    public Integer getCostIngots() {
        return costIngots;
    }

    public void setCostIngots(Integer costIngots) {
        this.costIngots = costIngots;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIsNeedAdress() {
        return isNeedAdress;
    }

    public void setIsNeedAdress(String isNeedAdress) {
        this.isNeedAdress = isNeedAdress;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {

        this.status = status;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", typeId=" + typeId +
                ", name='" + name + '\'' +
                ", costGolds=" + costGolds +
                ", costIngots=" + costIngots +
                ", amount=" + amount +
                ", saleNum=" + saleNum +
                ", photo='" + photo + '\'' +
                ", description='" + description + '\'' +
                ", isNeedAdress='" + isNeedAdress + '\'' +
                ", status='" + status + '\'' +
                ", typeName='" + typeName + '\'' +
                '}';
    }
}
